
class DepartmentRequestEntity {
  String? flatType;
  String? parentCode;
  String? code;
  int? pageNumber;
  int? pageSize;

  DepartmentRequestEntity({
    this.flatType,
    this.parentCode,
    this.code,
    this.pageNumber,
    this.pageSize,
  });

  Map<String, dynamic> toJson() => {
        "flatType": flatType,
        "parentCode": parentCode,
        "code": code,
        "pageNumber": pageNumber,
        "pageSize": pageSize,
      };
}

class DepartmentUserRequestEntity {
  String? code;

  DepartmentUserRequestEntity({
    this.code,
  });

  Map<String, dynamic> toJson() => {
        "code": code,
      };
}

class DepartmentResponseEntity {
  int? code;
  List<DepartmentItem>? data;
  String? message;
  int? total;

  DepartmentResponseEntity({this.code, this.data, this.message, this.total});

  DepartmentResponseEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new DepartmentItem.fromJson(v));
      });
    }
    message = json['message'];
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    data['total'] = this.total;
    return data;
  }
}

class DepartmentItem {
  String? userGuid;
  String? userName;
  String? deptCode;
  String? deptName;
  String? isCharge;
  String? isLeader;
  String? affairsCode;
  String? affairsName;
  int? sortNo;
  String? isShow;
  String? flatType;
  String? nodeId;
  String? label;
  bool? selected;
  bool? checked;

  DepartmentItem({
    this.userGuid,
    this.userName,
    this.deptCode,
    this.deptName,
    this.isCharge,
    this.isLeader,
    this.affairsCode,
    this.affairsName,
    this.sortNo,
    this.isShow,
    this.flatType,
    this.selected =false,
    this.checked,
    this.label,
    this.nodeId,
  });

  DepartmentItem.fromJson(Map<String, dynamic> json) {
    userGuid = json['userGuid'];
    userName = json['userName'];
    deptCode = json['deptCode'];
    deptName = json['deptName'];
    isCharge = json['isCharge'];
    isLeader = json['isLeader'];
    affairsCode = json['affairsCode'];
    affairsName = json['affairsName'];
    sortNo = json['sortNo'];
    isShow = json['isShow'];
    flatType = json['flatType'];
    nodeId = json['nodeId'];
    label = json['label'];
    checked = json['checked'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userGuid'] = this.userGuid;
    data['userName'] = this.userName;
    data['deptCode'] = this.deptCode;
    data['deptName'] = this.deptName;
    data['isCharge'] = this.isCharge;
    data['isLeader'] = this.isLeader;
    data['affairsCode'] = this.affairsCode;
    data['affairsName'] = this.affairsName;
    data['sortNo'] = this.sortNo;
    data['isShow'] = this.isShow;
    data['flatType'] = this.flatType;
    data['nodeId'] = this.nodeId;
    data['label'] = this.label;
    data['checked'] = this.checked;
    return data;
  }
}


class DeptLeaderListModel {
  List<DeptLeaderItem>? list;
  int? code;
  String? message;

  DeptLeaderListModel({this.list, this.code});

  DeptLeaderListModel.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      list = [];
      json['data'].forEach((v) {
        list!.add(new DeptLeaderItem.fromJson(v));
      });
    }
    message = json['message'];
    code = json['code'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.list != null) {
      data['data'] = this.list!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    data['code'] = this.code;
    return data;
  }
}

class DeptLeaderItem {
  String? userCode;
  String? userName;
  String? deptName;
  String? deptCode;
  String? meetingCode;
  String? meetingTopic;
  String? signDate;

  DeptLeaderItem(
      {
        this.userName,
        this.userCode,
        this.deptCode,
        this.deptName,
        this.meetingCode,
        this.meetingTopic,
        this.signDate,

      });

  DeptLeaderItem.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode']??'';
    userName = json['userName']??'';
    deptName = json['deptName']??'';
    deptCode = json['deptCode']??'';
    meetingCode = json['meetingCode']??'';
    signDate = json['signDate']??'';
    meetingTopic = json['meetingTopic']??'';

  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode??'';
    data['userName'] = this.userName??'';
    data['deptName'] = this.deptName??'';
    data['deptCode'] = this.deptCode??'';
    data['meetingCode'] = this.meetingCode??'';
    data['meetingTopic'] = this.meetingTopic??'';
    data['signDate'] = this.signDate??'';

    return data;
  }

}


///部门MODEL
class DepartmentResponseModel {
  int? code;
  List<AddressDepartmentData>? data;
  String? message;
  int? total;

  DepartmentResponseModel({this.code, this.data, this.message, this.total});

  DepartmentResponseModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new AddressDepartmentData.fromJson(v));
      });
    }
    message = json['message'];
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    data['total'] = this.total;
    return data;
  }
}

class AddressDepartmentData {
  AddressDeptMember? deptMember;
  AddressUsers? users;
  AddressDepartment? department;
  OrgDept? orgDept;

  AddressDepartmentData({this.deptMember, this.users, this.department, this.orgDept});

  AddressDepartmentData.fromJson(Map<String, dynamic> json) {
    deptMember = json['deptMember'] != null
        ? new AddressDeptMember.fromJson(json['deptMember'])
        : null;
    users = json['users'] != null ? new AddressUsers.fromJson(json['users']) : null;
    department = json['department'] != null
        ? new AddressDepartment.fromJson(json['department'])
        : null;
    orgDept =
    json['orgDept'] != null ? new OrgDept.fromJson(json['orgDept']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.deptMember != null) {
      data['deptMember'] = this.deptMember!.toJson();
    }
    if (this.users != null) {
      data['users'] = this.users!.toJson();
    }
    if (this.department != null) {
      data['department'] = this.department!.toJson();
    }
    if (this.orgDept != null) {
      data['orgDept'] = this.orgDept!.toJson();
    }
    return data;
  }
}

class AddressDeptMember {
  String? userCode;
  String? userName;
  String? deptCode;
  String? deptName;
  int? sortNo;
  String? isShow;
  String? platformCode;
  String? isValid;
  String? orgCode;
  String? isDefault;

  AddressDeptMember(
      {this.userCode,
        this.userName,
        this.deptCode,
        this.deptName,
        this.sortNo,
        this.isShow,
        this.platformCode,
        this.isValid,
        this.orgCode,
        this.isDefault});

  AddressDeptMember.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    deptCode = json['deptCode'];
    deptName = json['deptName'];
    sortNo = json['sortNo'];
    isShow = json['isShow'];
    platformCode = json['platformCode'];
    isValid = json['isValid'];
    orgCode = json['orgCode'];
    isDefault = json['isDefault'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['deptCode'] = this.deptCode;
    data['deptName'] = this.deptName;
    data['sortNo'] = this.sortNo;
    data['isShow'] = this.isShow;
    data['platformCode'] = this.platformCode;
    data['isValid'] = this.isValid;
    data['orgCode'] = this.orgCode;
    data['isDefault'] = this.isDefault;
    return data;
  }
}

class AddressUsers {
  String? userCode;
  String? userName;
  String? identityCard;
  String? sex;
  String? createTime;

  AddressUsers(
      {this.userCode,
        this.userName,
        this.identityCard,
        this.sex,
        this.createTime});

  AddressUsers.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    identityCard = json['identityCard'];
    sex = json['sex'];
    createTime = json['createTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['identityCard'] = this.identityCard;
    data['sex'] = this.sex;
    data['createTime'] = this.createTime;
    return data;
  }
}

class AddressDepartment {
  String? deptCode;
  String? deptName;
  int? sortNo;
  String? parentCode;
  String? isLeaf;
  String? createTime;
  String? deptTypeCode;
  String? isShow;
  String? deptEn;
  bool? selected;
  Null member;

  AddressDepartment(
      {this.deptCode,
        this.deptName,
        this.sortNo,
        this.parentCode,
        this.isLeaf,
        this.createTime,
        this.deptTypeCode,
        this.isShow,
        this.deptEn,
        this.selected=false,
        this.member});

  AddressDepartment.fromJson(Map<String, dynamic> json) {
    deptCode = json['deptCode'];
    deptName = json['deptName'];
    sortNo = json['sortNo'];
    parentCode = json['parentCode'];
    isLeaf = json['isLeaf'];
    createTime = json['createTime'];
    deptTypeCode = json['deptTypeCode'];
    isShow = json['isShow'];
    deptEn = json['deptEn'];
    member = json['member'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['deptCode'] = this.deptCode;
    data['deptName'] = this.deptName;
    data['sortNo'] = this.sortNo;
    data['parentCode'] = this.parentCode;
    data['isLeaf'] = this.isLeaf;
    data['createTime'] = this.createTime;
    data['deptTypeCode'] = this.deptTypeCode;
    data['isShow'] = this.isShow;
    data['deptEn'] = this.deptEn;
    data['member'] = this.member;
    return data;
  }
}

class OrgDept {
  String? orgCode;
  String? deptCode;

  OrgDept({this.orgCode, this.deptCode});

  OrgDept.fromJson(Map<String, dynamic> json) {
    orgCode = json['orgCode'];
    deptCode = json['deptCode'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['orgCode'] = this.orgCode;
    data['deptCode'] = this.deptCode;
    return data;
  }
}

///通讯录部门列表

class AddressBookDepartmentListModel {
  int? code;
  List<AddressBookDepartmentItem>? data;
  String? message;
  int? total;

  AddressBookDepartmentListModel(
      {this.code, this.data, this.message, this.total});

  AddressBookDepartmentListModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new AddressBookDepartmentItem.fromJson(v));
      });
    }
    message = json['message'];
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    data['total'] = this.total;
    return data;
  }
}

class AddressBookDepartmentItem {
  String? deptCode;
  String? deptName;
  String? deptShortName;
  int? sortNo;
  String? parentCode;
  String? levelNo;
  String? editTime;
  String? isLeaf;
  String? deptType;
  String? deptAbbr;
  String? isShow;
  String? deptClassic;
  bool? selected;

  AddressBookDepartmentItem(
      {this.deptCode,
        this.deptName,
        this.deptShortName,
        this.sortNo,
        this.parentCode,
        this.levelNo,
        this.editTime,
        this.isLeaf,
        this.deptType,
        this.deptAbbr,
        this.isShow,
        this.deptClassic,
        this.selected =false,
      });

  AddressBookDepartmentItem.fromJson(Map<String, dynamic> json) {
    deptCode = json['deptCode'];
    deptName = json['deptName'];
    deptShortName = json['deptShortName'];
    sortNo = json['sortNo'];
    parentCode = json['parentCode'];
    levelNo = json['levelNo'];
    editTime = json['editTime'];
    isLeaf = json['isLeaf'];
    deptType = json['deptType'];
    deptAbbr = json['deptAbbr'];
    isShow = json['isShow'];
    deptClassic = json['deptClassic'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['deptCode'] = this.deptCode;
    data['deptName'] = this.deptName;
    data['deptShortName'] = this.deptShortName;
    data['sortNo'] = this.sortNo;
    data['parentCode'] = this.parentCode;
    data['levelNo'] = this.levelNo;
    data['editTime'] = this.editTime;
    data['isLeaf'] = this.isLeaf;
    data['deptType'] = this.deptType;
    data['deptAbbr'] = this.deptAbbr;
    data['isShow'] = this.isShow;
    data['deptClassic'] = this.deptClassic;
    return data;
  }
}



///通讯录人员列表
class AddressBookUserListModel {
  int? code;
  List<AddressBookUserItem>? data;
  String? message;
  int? total;

  AddressBookUserListModel({this.code, this.data, this.message, this.total});

  AddressBookUserListModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new AddressBookUserItem.fromJson(v));
      });
    }
    message = json['message'];
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    data['total'] = this.total;
    return data;
  }
}

class AddressBookUserItem {
  AddressBookUsersSort? usersSort;
  AddressBookDeptMember? deptMember;
  AddressBookUsers? users;
  AddressBookUsersContactInfo? usersContactInfo;

  AddressBookUserItem({this.usersSort, this.deptMember, this.users, this.usersContactInfo});

  AddressBookUserItem.fromJson(Map<String, dynamic> json) {
    usersSort = json['usersSort'] != null
        ? new AddressBookUsersSort.fromJson(json['usersSort'])
        : null;
    deptMember = json['deptMember'] != null
        ? new AddressBookDeptMember.fromJson(json['deptMember'])
        : null;
    users = json['users'] != null ? new AddressBookUsers.fromJson(json['users']) : null;
    usersContactInfo = json['usersContactInfo'] != null
        ? new AddressBookUsersContactInfo.fromJson(json['usersContactInfo'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.usersSort != null) {
      data['usersSort'] = this.usersSort!.toJson();
    }
    if (this.deptMember != null) {
      data['deptMember'] = this.deptMember!.toJson();
    }
    if (this.users != null) {
      data['users'] = this.users!.toJson();
    }
    if (this.usersContactInfo != null) {
      data['usersContactInfo'] = this.usersContactInfo!.toJson();
    }
    return data;
  }
}

class AddressBookUsersSort {
  String? userCode;
  String? userName;
  int? sortNo;

  AddressBookUsersSort({this.userCode, this.userName, this.sortNo});

  AddressBookUsersSort.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    sortNo = json['sortNo'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['sortNo'] = this.sortNo;
    return data;
  }
}

class AddressBookDeptMember {
  String? userCode;
  String? userName;
  String? deptCode;
  String? deptName;
  String? isShow;
  String? platformCode;
  String? isValid;
  String? orgCode;
  String? isDefault;

  AddressBookDeptMember(
      {this.userCode,
        this.userName,
        this.deptCode,
        this.deptName,
        this.isShow,
        this.platformCode,
        this.isValid,
        this.orgCode,
        this.isDefault});

  AddressBookDeptMember.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    deptCode = json['deptCode'];
    deptName = json['deptName'];
    isShow = json['isShow'];
    platformCode = json['platformCode'];
    isValid = json['isValid'];
    orgCode = json['orgCode'];
    isDefault = json['isDefault'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['deptCode'] = this.deptCode;
    data['deptName'] = this.deptName;
    data['isShow'] = this.isShow;
    data['platformCode'] = this.platformCode;
    data['isValid'] = this.isValid;
    data['orgCode'] = this.orgCode;
    data['isDefault'] = this.isDefault;
    return data;
  }
}

class AddressBookUsers {
  String? userCode;
  String? userName;
  String? identityCard;
  String? sex;
  String? createTime;

  AddressBookUsers(
      {this.userCode,
        this.userName,
        this.identityCard,
        this.sex,
        this.createTime});

  AddressBookUsers.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    identityCard = json['identityCard'];
    sex = json['sex'];
    createTime = json['createTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['identityCard'] = this.identityCard;
    data['sex'] = this.sex;
    data['createTime'] = this.createTime;
    return data;
  }
}

class AddressBookUsersContactInfo {
  String? userCode;
  String? userName;
  String? mobile;
  String? tel;
  String? email;
  String? room;
  String? createTime;
  String? createUserCode;
  String? createUserName;
  String? updateTime;
  String? updateUserCode;
  String? updateUserName;
  String? type;

  AddressBookUsersContactInfo(
      {this.userCode,
        this.userName,
        this.mobile,
        this.tel,
        this.email,
        this.room,
        this.createTime,
        this.createUserCode,
        this.createUserName,
        this.updateTime,
        this.updateUserCode,
        this.type,
        this.updateUserName});

  AddressBookUsersContactInfo.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    mobile = json['mobile'];
    tel = json['tel'];
    email = json['email'];
    room = json['room'];
    createTime = json['createTime'];
    createUserCode = json['createUserCode'];
    createUserName = json['createUserName'];
    updateTime = json['updateTime'];
    updateUserCode = json['updateUserCode'];
    updateUserName = json['updateUserName'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['mobile'] = this.mobile;
    data['tel'] = this.tel;
    data['email'] = this.email;
    data['room'] = this.room;
    data['createTime'] = this.createTime;
    data['createUserCode'] = this.createUserCode;
    data['createUserName'] = this.createUserName;
    data['updateTime'] = this.updateTime;
    data['updateUserCode'] = this.updateUserCode;
    data['updateUserName'] = this.updateUserName;
    data['type'] = this.type;
    return data;
  }
}


///通讯录人员详情
class AddressBookDetailResponseEntity {
  int? code;
  AddressBookDetailData? data;
  String? message;
  int? total;

  AddressBookDetailResponseEntity(
      {this.code, this.data, this.message, this.total});

  AddressBookDetailResponseEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = json['data'] != null ? new AddressBookDetailData.fromJson(json['data']) : null;
    message = json['message'];
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['message'] = this.message;
    data['total'] = this.total;
    return data;
  }
}

class AddressBookDetailData {
  AddressBookDetailDepartment? department;
  AddressBookDetailDeptMember? deptMember;
  AddressBookDetailUsers? users;
  AddressBookDetailUsersContactInfo? usersContactInfo;
  List<AddressBookDetailUsersAddress>? usersAddress;
  List<AddressBookDetailUsersBankCard>? usersBankCard;

  AddressBookDetailData(
      {this.department,
        this.deptMember,
        this.users,
        this.usersContactInfo,
        this.usersAddress,
        this.usersBankCard});

  AddressBookDetailData.fromJson(Map<String, dynamic> json) {
    department = json['department'] != null
        ? new AddressBookDetailDepartment.fromJson(json['department'])
        : null;
    deptMember = json['deptMember'] != null
        ? new AddressBookDetailDeptMember.fromJson(json['deptMember'])
        : null;
    users = json['users'] != null ? new AddressBookDetailUsers.fromJson(json['users']) : null;
    usersContactInfo = json['usersContactInfo'] != null
        ? new AddressBookDetailUsersContactInfo.fromJson(json['usersContactInfo'])
        : null;
    if (json['usersAddress'] != null) {
      usersAddress = [];
      json['usersAddress'].forEach((v) {
        usersAddress!.add(new AddressBookDetailUsersAddress.fromJson(v));
      });
    }
    if (json['usersBankCard'] != null) {
      usersBankCard = [];
      json['usersBankCard'].forEach((v) {
        usersBankCard!.add(new AddressBookDetailUsersBankCard.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.department != null) {
      data['department'] = this.department!.toJson();
    }
    if (this.deptMember != null) {
      data['deptMember'] = this.deptMember!.toJson();
    }
    if (this.users != null) {
      data['users'] = this.users!.toJson();
    }
    if (this.usersContactInfo != null) {
      data['usersContactInfo'] = this.usersContactInfo!.toJson();
    }
    if (this.usersAddress != null) {
      data['usersAddress'] = this.usersAddress!.map((v) => v.toJson()).toList();
    }
    if (this.usersBankCard != null) {
      data['usersBankCard'] =
          this.usersBankCard!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class AddressBookDetailDepartment {
  String? deptCode;
  String? deptName;
  int? sortNo;
  String? parentCode;
  String? isLeaf;
  String? createTime;
  String? deptTypeCode;
  String? isShow;
  String? deptEn;
  Null member;

  AddressBookDetailDepartment(
      {this.deptCode,
        this.deptName,
        this.sortNo,
        this.parentCode,
        this.isLeaf,
        this.createTime,
        this.deptTypeCode,
        this.isShow,
        this.deptEn,
        this.member});

  AddressBookDetailDepartment.fromJson(Map<String, dynamic> json) {
    deptCode = json['deptCode'];
    deptName = json['deptName'];
    sortNo = json['sortNo'];
    parentCode = json['parentCode'];
    isLeaf = json['isLeaf'];
    createTime = json['createTime'];
    deptTypeCode = json['deptTypeCode'];
    isShow = json['isShow'];
    deptEn = json['deptEn'];
    member = json['member'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['deptCode'] = this.deptCode;
    data['deptName'] = this.deptName;
    data['sortNo'] = this.sortNo;
    data['parentCode'] = this.parentCode;
    data['isLeaf'] = this.isLeaf;
    data['createTime'] = this.createTime;
    data['deptTypeCode'] = this.deptTypeCode;
    data['isShow'] = this.isShow;
    data['deptEn'] = this.deptEn;
    data['member'] = this.member;
    return data;
  }
}

class AddressBookDetailDeptMember {
  String? userCode;
  String? userName;
  String? deptCode;
  String? deptName;
  String? isShow;
  String? platformCode;
  String? isValid;
  String? orgCode;
  String? isDefault;

  AddressBookDetailDeptMember(
      {this.userCode,
        this.userName,
        this.deptCode,
        this.deptName,
        this.isShow,
        this.platformCode,
        this.isValid,
        this.orgCode,
        this.isDefault});

  AddressBookDetailDeptMember.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    deptCode = json['deptCode'];
    deptName = json['deptName'];
    isShow = json['isShow'];
    platformCode = json['platformCode'];
    isValid = json['isValid'];
    orgCode = json['orgCode'];
    isDefault = json['isDefault'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['deptCode'] = this.deptCode;
    data['deptName'] = this.deptName;
    data['isShow'] = this.isShow;
    data['platformCode'] = this.platformCode;
    data['isValid'] = this.isValid;
    data['orgCode'] = this.orgCode;
    data['isDefault'] = this.isDefault;
    return data;
  }
}

class AddressBookDetailUsers {
  String? userCode;
  String? userName;
  String? identityCard;
  String? sex;
  String? createTime;

  AddressBookDetailUsers(
      {this.userCode,
        this.userName,
        this.identityCard,
        this.sex,
        this.createTime});

  AddressBookDetailUsers.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    identityCard = json['identityCard'];
    sex = json['sex'];
    createTime = json['createTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['identityCard'] = this.identityCard;
    data['sex'] = this.sex;
    data['createTime'] = this.createTime;
    return data;
  }
}

class AddressBookDetailUsersContactInfo {
  String? userCode;
  String? userName;
  String? mobile;
  String? tel;
  String? email;
  String? room;
  String? createTime;
  String? createUserCode;
  String? createUserName;
  String? updateTime;
  String? updateUserCode;
  String? updateUserName;

  AddressBookDetailUsersContactInfo(
      {this.userCode,
        this.userName,
        this.mobile,
        this.tel,
        this.email,
        this.room,
        this.createTime,
        this.createUserCode,
        this.createUserName,
        this.updateTime,
        this.updateUserCode,
        this.updateUserName});

  AddressBookDetailUsersContactInfo.fromJson(Map<String, dynamic> json) {
    userCode = json['userCode'];
    userName = json['userName'];
    mobile = json['mobile'];
    tel = json['tel'];
    email = json['email'];
    room = json['room'];
    createTime = json['createTime'];
    createUserCode = json['createUserCode'];
    createUserName = json['createUserName'];
    updateTime = json['updateTime'];
    updateUserCode = json['updateUserCode'];
    updateUserName = json['updateUserName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['mobile'] = this.mobile;
    data['tel'] = this.tel;
    data['email'] = this.email;
    data['room'] = this.room;
    data['createTime'] = this.createTime;
    data['createUserCode'] = this.createUserCode;
    data['createUserName'] = this.createUserName;
    data['updateTime'] = this.updateTime;
    data['updateUserCode'] = this.updateUserCode;
    data['updateUserName'] = this.updateUserName;
    return data;
  }
}

class AddressBookDetailUsersAddress {
  String? linkCode;
  String? userCode;
  String? userName;
  String? linkUser;
  String? linkTel;
  String? linkAddress;
  String? isDefault;
  String? createTime;
  String? createUserCode;
  String? createUserName;
  String? updateTime;
  String? updateUserCode;
  String? updateUserName;

  AddressBookDetailUsersAddress(
      {this.linkCode,
        this.userCode,
        this.userName,
        this.linkUser,
        this.linkTel,
        this.linkAddress,
        this.isDefault,
        this.createTime,
        this.createUserCode,
        this.createUserName,
        this.updateTime,
        this.updateUserCode,
        this.updateUserName});

  AddressBookDetailUsersAddress.fromJson(Map<String, dynamic> json) {
    linkCode = json['linkCode'];
    userCode = json['userCode'];
    userName = json['userName'];
    linkUser = json['linkUser'];
    linkTel = json['linkTel'];
    linkAddress = json['linkAddress'];
    isDefault = json['isDefault'];
    createTime = json['createTime'];
    createUserCode = json['createUserCode'];
    createUserName = json['createUserName'];
    updateTime = json['updateTime'];
    updateUserCode = json['updateUserCode'];
    updateUserName = json['updateUserName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['linkCode'] = this.linkCode;
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['linkUser'] = this.linkUser;
    data['linkTel'] = this.linkTel;
    data['linkAddress'] = this.linkAddress;
    data['isDefault'] = this.isDefault;
    data['createTime'] = this.createTime;
    data['createUserCode'] = this.createUserCode;
    data['createUserName'] = this.createUserName;
    data['updateTime'] = this.updateTime;
    data['updateUserCode'] = this.updateUserCode;
    data['updateUserName'] = this.updateUserName;
    return data;
  }
}

class AddressBookDetailUsersBankCard {
  String? bankCardCode;
  String? userCode;
  String? userName;
  String? bankName;
  String? isDefault;
  String? isBusiness;
  String? isSalary;
  String? createTime;
  String? createUserCode;
  String? createUserName;
  String? updateTime;
  String? updateUserCode;
  String? updateUserName;
  String? branchName;
  String? bankCard;

  AddressBookDetailUsersBankCard(
      {this.bankCardCode,
        this.userCode,
        this.userName,
        this.bankName,
        this.isDefault,
        this.isBusiness,
        this.isSalary,
        this.createTime,
        this.createUserCode,
        this.createUserName,
        this.updateTime,
        this.updateUserCode,
        this.updateUserName,
        this.bankCard,
        this.branchName});

  AddressBookDetailUsersBankCard.fromJson(Map<String, dynamic> json) {
    bankCardCode = json['bankCardCode'];
    userCode = json['userCode'];
    userName = json['userName'];
    bankName = json['bankName'];
    isDefault = json['isDefault'];
    isBusiness = json['isBusiness'];
    isSalary = json['isSalary'];
    createTime = json['createTime'];
    createUserCode = json['createUserCode'];
    createUserName = json['createUserName'];
    updateTime = json['updateTime'];
    updateUserCode = json['updateUserCode'];
    updateUserName = json['updateUserName'];
    branchName = json['branchName'];
    bankCard = json['bankCard'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['bankCardCode'] = this.bankCardCode;
    data['userCode'] = this.userCode;
    data['userName'] = this.userName;
    data['bankName'] = this.bankName;
    data['isDefault'] = this.isDefault;
    data['isBusiness'] = this.isBusiness;
    data['isSalary'] = this.isSalary;
    data['createTime'] = this.createTime;
    data['createUserCode'] = this.createUserCode;
    data['createUserName'] = this.createUserName;
    data['updateTime'] = this.updateTime;
    data['updateUserCode'] = this.updateUserCode;
    data['updateUserName'] = this.updateUserName;
    data['branchName'] = this.branchName;
    data['bankCard'] = this.bankCard;
    return data;
  }
}







